using Admin.NET.Application;
using Furion;
using Furion.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;
using Xunit;

namespace Admin.NET.Test
{
    public class UnitTest1: IScoped
    {
        private readonly PlanService _planService;
        //private readonly AuthService authService = new AuthService();
        public UnitTest1()
        {
            var service = Inject.Create();
            service.Build();
            _planService=App.GetService<PlanService>();
        }

        [Fact]
        public void Test1()
        {
            var en = _planService.GetPlanListAll();
            System.Console.WriteLine(en);
            Assert.NotNull(en);
        }


        //[Theory]
        //[InlineData("","")]
        //public void Test_Login(string name,string )
        //{
        //    var en = planService.GetPlanListAll();
        //    System.Console.WriteLine(en);
        //    Assert.NotNull(en);
        //}
    }
}